
rm -rf bin usr/bin

libgif=`find . -name 'libgif.so.4*' | tail -1`

if [ -f "$libgif" ] ; then
	BASENAME="$(basename $libgif)"
	DIRNAME="$(dirname $libgif)"
	ln -s $BASENAME $DIRNAME/libgif.so.0
	ln -s $BASENAME $DIRNAME/libgif.so.3
	ln -s $BASENAME $DIRNAME/libungif.so
	ln -s $BASENAME $DIRNAME/libungif.so.0
	ln -s $BASENAME $DIRNAME/libungif.so.3
fi
